package hoang.android.app.info;

public class WebServiceConfig {

	public static final int NETWORK_TIMEOUT = 6000;
	
	//---------------------API ------------------------//
	public static final String HTTP = "http://";
	
	public static final String HTTPS = "https://";
	
	public static final String DOMAIN = HTTP + "aet.thetollroads.com/ws/v1/";
	
	public static final String API_GET_LOCATION_LIST = DOMAIN +  "payGo";
	
	public static final String API_SUBMIT_USER_INFO = DOMAIN + "payGo";
	
	public static final String API_ADD_TRIP = DOMAIN + "payGo";
	
	public static final String API_GET_LIST_TRIP = DOMAIN + "payGo";
	
	public static final String API_GET_DEL_TRIP = DOMAIN + "payGo";

	// --------------------Params--------------------//
	public static final String PARAM_SUCCESS = "success";
	
	//for get location list
	/**
	 * tokenID=90f43e75b0d2ed4b9774792648ce4b87f957b580&action= loclist&toll_road=0&loc_id=0&timestamp=1321700334 
	 */
	
	public static final String PARAM_TOKEN_ID = "tokenID";
	
	public static final String PARAM_ACTION = "action";
	
	public static final String PARAM_TOLL_ROAD = "toll_road";
	
	public static final String PARAM_ROAD_NAME = "road_name";
	
	public static final String PARAM_LOC_ID = "loc_id";
	
	public static final String PARAM_LOC_NAME = "loc_name";
	
	public static final String PARAM_TIME_STAMP = "timestamp";
	
	public static final String PARAM_INFOR = "info";
	
	
	//================lay ve thong tin user====================//
	/**
	 * address_title=Mr&
	 * year2=2010&
	 * year1=2001&
	 * 
	 * make2=ford&
	 * make1=ford&
	 * 
	 * address_state=CA&
	 * 
	 * model2=f150&
	 * plate2=pl103b&
	 * 
	 * model1=focus&
	 * plate1=pl103a&
	 * 
	 * email_address=sallen@thetollroads.com&
	 * 
	 * address_middle_name=A&
	 * work_phone=1115556543&
	 * address_zipcode=92618&
	 * email_receipt=true&
	 * address_first_name=John&
	 * 
	 * state2=GA&
	 * state1=CA&
	 * 
	 * address_last_name=Martin&
	 * address_city=Irvine&
	 * 
	 * action=userinfo&
	 * 
	 * color2=brown&
	 * address1=103 Main&
	 * 
	 * color1=white&
	 * 
	 * vehicle_class=5to6&
	 * timestamp=1321700334
	 * 
	 */
	
	public static final String PARAM_ADDRESS_TITLE ="address_title";
	
	public static final String PARAM_ADDRESS_FIRST_NAME = "address_first_name";
	
	public static final String PARAM_ADDRESS_LAST_NAME = "address_last_name";
	
	public static final String PARAM_ADDRESS_MIDDLE_NAME = "address_middle_name";
	
	public static final String PARAM_ADDRESS1 = "address1";
	
	public static final String PARAM_ADDRESS_CITY ="address_city";
	
	public static final String PARAM_ADDRESS_STATE = "address_state";
	
	public static final String PARAM_ADDRESS_ZIPCODE = "address_zipcode";
	
	public static final String PARAM_WORK_PHONE = "work_phone";
	
	public static final String PARAM_EMAIL_ADDRESS = "email_address";
	
	public static final String PARAM_EMAIL_RECEIPT = "email_receipt";
	
	public static final String PARAM_VEHICLE_CLASS = "vehicle_class";
	
	public static final String PARAM_PLATE1 = "plate1";
	
	public static final String PARAM_YEAR1 = "year1";
	
	public static final String PARAM_MAKE1 = "make1";
	
	public static final String PARAM_MODEL1 = "model1";
	
	public static final String PARAM_STATE1 = "state1";
	
	public static final String PARAM_COLOR1 = "color1";
	
	public static final String PARAM_PLATE2 = "plate2";
	
	public static final String PARAM_YEAR2 = "year2";
	
	public static final String PARAM_MAKE2 = "make2";
	
	public static final String PARAM_MODEL2 = "model2";
	
	public static final String PARAM_STATE2 = "state2";
	
	public static final String PARAM_COLOR2 = "color2";
	
	public static final String PARAM_ACTION_USER_INFO = "action";
	
	public static final String PARAM_START_DATE = "start_date";
	
	public static final String PARAM_FROM_LOC_ID = "from_loc_id";
	
	public static final String PARAM_TO_LOC_ID = "to_loc_id";
	
	//---------------list trip-------------------------------//
	//{"success":1,"status":200,"message":"","amount_due":6.25,"previous_amount_due":0.00,"info":
	//[{"trip_num":1,"from_loc_id":4,"to_loc_id":8,"trip_date":"09/28/2013","trip_amount":6.25}]}
	//
	public static final String PARAM_AMOUNT_DUE= "amount_due";
	
	public static final String PARAM_PREVIOUS_AMOUNT_DUE = "previous_amount_due";
	
	public static final String PARAM_INFO = "info";
	
	public static final String PARAM_TRIP_NUM = "trip_num";
	
	public static final String PARAM_TRIP_DATE = "trip_date";
	
	public static final String PARAM_TRIP_AMOUNT = "trip_amount";
	
	//----------------------Action --------------------//
	
	public static String ACTION_LOC_LIST = "loclist";
	
	public static String ACTION_USER_INFO = "userinfo";
	
	public static String ACTION_ADD_TRIP = "addtrip";
	
	public static String ACTION_TRIP_LIST = "triplist";
	
	public static String ACTION_DEL_LIST = "deltrip";
}
